#pragma once
#include <d3dx9.h>
#include "Node.h"

class Frustum;
class OBB : public Node
{
	D3DXVECTOR3 vertices[8];
public:

	OBB();
	OBB( std::vector<D3DXVECTOR3> &vrts );

	void GenerateBoundingBox( std::vector<D3DXVECTOR3> &vrts );

	bool InFrustum( const Frustum &f );
	D3DXVECTOR3 *GetVertices();
};